import request from '@/utils/request'

export function partSearch(params = {hospitalId: '', warehouseId: '', searchValue: '', partId: ''}) {
  return request({
    url: '/spare/part/partSearch',
    params
  })
}

export function getPartListByIds(params = {ids: ''}){
  return request({
    url: '/spare/part/getPartListByIds',
    method: 'get',
    params
  })
}

export function partAttachList(partId){
  return request({
    url: '/spare/part/attach/list',
    method: 'get',
    params : {
      partId
    }
  })

}